import request from '@/utils/request'

// 查询活动组列表
export function listGroup(query) {
  return request({
    url: '/ss/group/list',
    method: 'get',
    params: query
  })
}

// 查询活动组详细
export function getGroup(activityGroupId) {
  return request({
    url: '/ss/group/' + activityGroupId,
    method: 'get'
  })
}

// 新增活动组
export function addGroup(data) {
  return request({
    url: '/ss/group',
    method: 'post',
    data: data
  })
}

// 修改活动组
export function updateGroup(data) {
  return request({
    url: '/ss/group',
    method: 'put',
    data: data
  })
}

// 删除活动组
export function delGroup(activityGroupId) {
  return request({
    url: '/ss/group/' + activityGroupId,
    method: 'delete'
  })
}
